"""p6xiangmu URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""

from django.urls import path
from .views import *
urlpatterns = [
    # 登入的路由
    path('login/', LoGin.as_view()),
    # 验证码
    path('sms_code/',SmsCode.as_view()),
    # 获取用户总人数
    path('total_count/',UserCountView.as_view()),
    # 日增人数
    path('day_increment/',UserGrowing.as_view()),
    # 日活跃人数
    path('day_live/',ActiveView.as_view()),
    path('month_increment/',DangRi.as_view()),

    path('month_live/',MonthLive.as_view()),

    # 获取全部用户
    path('all_user/',AlluserView.as_view()),

    # 获取全部用户——不分页
    path('all_user_get/',AlluserGetView.as_view()),

    # 添加用户
    path('adduser/',AddUserView.as_view()),

    # 修改用户

    path('amend/<int:id>/',AmendView.as_view()),

    # 搜索
    path('search/',SearchView.as_view()),

    # 权限名称
    path('permission/',PermissionView.as_view()),

    # 权限类型
    path('permission/types/',TypesView.as_view()),

    # 权限名称改删查
    path('permission/<int:id>/',PermissionZSView.as_view()),

    # 头像
    path('tou/',TouView.as_view()),

    # 用户组获取添加
    path('groupget/',UserGroupGetView.as_view()),

    # 用户组修改删除
    path('user_groups/<int:id>/',UserGroupPutView.as_view()),

    # 添加用户管理
    path('admin_user/',AdminUser.as_view()),

    # 获取单个修改删除
    path('admin_user/<int:id>/',AdminUserInfoView.as_view()),





]
